package com.hyl.monsterInEachCave;

import com.hyl.creature.Monster;

import java.util.ArrayList;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/14 17:03
 * @version:
 * @modified By:
 */
public class WolfCaveMonsterSet {
    private ArrayList<Monster> wolfCaveMonsters = new ArrayList<>();

    public Monster getWolfCaveMonster(String id){
        Monster wolfCaveMonster = null;
        for (Monster item:wolfCaveMonsters){
            if (id.equals(item.getId())){
                wolfCaveMonster = item;
                break;
            }
        }
        return wolfCaveMonster;
    }

    public WolfCaveMonsterSet() {
    }

    public WolfCaveMonsterSet(ArrayList<Monster> wolfCaveMonsters) {
        this.wolfCaveMonsters = wolfCaveMonsters;
    }

    public ArrayList<Monster> getWolfCaveMonsters() {
        return wolfCaveMonsters;
    }

    public void setWolfCaveMonsters(ArrayList<Monster> wolfCaveMonsters) {
        this.wolfCaveMonsters = wolfCaveMonsters;
    }
}
